var Fight;
!(function (i) {
  var t = (function () {
    function i() {
      (this.atk = 10),
        (this.hp = 300),
        (this.mp = 100),
        (this.maxHp = 300),
        (this.maxMp = 100),
        (this.speed = ""),
        (this.skill = []);
    }
    return (
      (i.prototype.initBasic = function (i, t, s, h, p) {
        (this.atk = t),
          (this.hp = s),
          (this.mp = h),
          (this.maxHp = s),
          (this.maxMp = h),
          p && (this.speed = "一");
      }),
      (i.prototype.init = function (i, t, s) {
        (this.roleType = i.roletype % 10),
          (this.type = s),
          (this.id = t),
          (this.name = i.name),
          (this.hp = i.hp),
          (this.mp = i.mp),
          (this.maxHp = i.maxHp),
          (this.maxMp = i.maxMp),
          (this.speed = i.speedStr),
          (this.objType = i.obj_type),
          (this.roleId = i.role_id),
          (this.index = i.indexID);
        var h = this.skill;
        i.skill_1 && i.skill_1 > 0 && h.push(Dictionary.skill[i.skill_1]),
          i.skill_2 && i.skill_2 > 0 && h.push(Dictionary.skill[i.skill_2]),
          i.skill_3 && i.skill_3 > 0 && h.push(Dictionary.skill[i.skill_3]),
          i.skill_4 && i.skill_4 > 0 && h.push(Dictionary.skill[i.skill_4]);
      }),
      (i.prototype.changeInit = function (i) {
        (this.hp = i.hp),
          (this.mp = i.mp),
          (this.maxHp = i.maxHp),
          (this.maxMp = i.maxMp),
          (this.speed = i.speedStr);
      }),
      i
    );
  })();
  i.Role = t;
})(Fight || (Fight = {}));
